<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>

<#include "/common/pagerForm.html">

<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)" >
            <input type="hidden" id="advancedStatus" name="advancedStatus"
                value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar part" >
            <ul class="searchContent">
                <li ><label id="partCode"><@label key="partCode.C,colon">备件编号：</@label></label> <input type="text" class="textInput" name="partCode" value="${condition.partCode!''}" /></li>
                <li ><label id="partText"><@label key="partText.C,colon">备件描述：</@label></label> <input type="text" class="textInput" name="partText" value="${condition.partText!''}" /></li>
                <li ><label id="applicableEquipment"><@label key="applicableEquipment.C,colon">应用设备：</@label></label> <input type="text" class="textInput" name="applicableEquipment" value="${condition.applicableEquipment!''}" /></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
                <li class="advancedQuery"><a id="advancedQuery" href="javascript:void(0);" onclick="openAdvanced(navTab.getCurrentPanel())"> <@label key="advancedQuery.C">高级查询</@label> </a> <span onclick="openAdvanced(navTab.getCurrentPanel());"></span></li>
            </ul>
        </div>
    </div>
    <div id="collapsablePanel" style="display:none;"class="pageHeader" >
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='specModel.C,colon'>规格型号：</@label>
                </label>
                <input type="text" name="specModel" value="${condition.specModel!''}"/>
            </li>
            <li>
                <label>
                    <@label key='memo.C,colon'>备注：</@label>
                </label>
                <input type="text" name="memo" value="${condition.memo!''}"/>
            </li>
            <li class="lockFlag">
                    <div >
                        <label><@label key="lockFlag.L">锁定标记：</@label></label> <select name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                        </select>
                    </div>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='createUser.C,colon'>创建人：</@label>
                </label>
                <input type="text" name="createUser" value="${condition.createUser!''}"/>
            </li>
            <li>
                <label>
                    <@label key='createDateTime.C,colon'>创建日期从：</@label>
                </label>
            
                    <input type="text" class="date" readonly="readonly" size="17" max_Date="{maxCreateDateTime}"  name="minCreateDateTime" value="${condition.minCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minCreateDateTime}" name="maxCreateDateTime"  value="${condition.maxCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='modifyUser.C,colon'>修改人：</@label>
                </label>
                <input type="text" name="modifyUser" value="${condition.modifyUser!''}"/>
            </li>
            <li>
                <label>
                    <@label key='modifyDateTime.C,colon'>修改日期从：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17"  max_Date="{maxModifyDateTime}" name="minModifyDateTime" value="${condition.minModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>    
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minModifyDateTime}" name="maxModifyDateTime"  value="${condition.maxModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
        </ul>
    </div>
</div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="partCode_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="650" height="340" href="${rc.getContextPath()}/manage/equipmentPart/addPart?navTabId=${navTabId!''}" ref="addpart" title="<@label key='addPart.D'>新增备件</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="partCode_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="650" height="400" href="${rc.getContextPath()}/manage/equipmentPart/modifyPart?id={part_code}&navTabId=${navTabId!''}" ref="editpart"  title="<@label key='editPart.D'>编辑备件</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="partCode_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="650" height="400" href="${rc.getContextPath()}/manage/equipmentPart/viewPart?id={part_code}&navTabId=${navTabId!''}" ref="viewpart" title="<@label key='viewPart.D'>备件详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="partCode_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/equipmentPart/deletePart?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelPart.M'>确认要删除选择的备件吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" orderField="partCode"<#if (page.orderField?? && page.orderField == 'partCode')>class="${page.orderDirection!''}"</#if>><@label key="partCode.C">维修类别编号</@label></th>
                <th width="100" orderField="partText"<#if (page.orderField?? && page.orderField == 'partText')>class="${page.orderDirection!''}"</#if>><@label key="partText.C">维修类别描述</@label></th>
                <th width="100" orderField="specModel"<#if (page.orderField?? && page.orderField == 'specModel')>class="${page.orderDirection!''}"</#if>><@label key="specModel.C">规格型号</@label></th>
                <th width="100" orderField="applicableEquipment"<#if (page.orderField?? && page.orderField == 'applicableEquipment')>class="${page.orderDirection!''}"</#if>><@label key="applicableEquipment.C">应用设备</@label></th>
                <th width="50" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="100" orderField="memo"<#if (page.orderField?? && page.orderField == 'memo')>class="${page.orderDirection!''}"</#if>><@label key="memo.C">应用设备</@label></th>
            <!--     <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th> -->
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as part>
            <tr target="part_code" rel="${part.partCode!''}">
                <td><input name="ids" value="${part.partCode!''}" type="checkbox"></td>
                <td>${page.startRow + part_index}</td>
                <td>${part.partCode!''}</td>
                <td>${part.partText!''}</td>
                <td>${part.specModel!''}</td>
                <td>${part.applicableEquipment!''}</td>
                <td><#if (part.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
                <td>${part.memo!''}</td>
<!--                 <td>${part.createUser!''}</td>
                <td>${part.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${part.modifyUser!''}</td>
                <td>${part.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td> -->
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
    
</div>



<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});






</script>